package com.deepocean.dao;

import com.deepocean.entity.*;
import com.deepocean.entity.process.JigProcessEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface JigDao {
    /**
     * 跳汰机添加数据
     * @param jigEntity
     * @return
     */
    boolean add(JigEntity jigEntity);

    /**
     * 当前时间开始，进一小时数据总和
     * @param deviceId
     * @return
     */
    JigInAndOut1Hour getInAndOutInHour(String deviceId);

    /**
     * 条件查询
     * @param jigCondition
     * @return
     */
    List<JigEntity> getJigByCondition(JigCondition jigCondition);

    /**
     * 跳汰机理论算法
     * @param jigProcessEntity
     * @return
     */
    boolean addProcess(JigProcessEntity jigProcessEntity);
}
